﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ThaireInvestmentWeb.WcfSerivce;

namespace ThaireInvestmentWeb.Models
{
    public class DepositInterestAdapter
    {
        private DepositInterest _item;

        public DepositInterestAdapter(DepositInterest item)
        {
            _item = item;
        }

        public int No { get; set; }

        public DateTime? PaymentDate
        {
            get { return DateTime.Now; }
        }

        public DateTime? ApplyDate
        {
            get { return _item.InterestApplyDate; }
        }

        public decimal? InterestRate
        {
            get { return _item.InterestRate; }
        }

        public string Link
        {
            get { return string.Format("DeleteDepositInterest?interestId={1}", _item.DepositHeaderID); }
        }

        public int InterestID
        {
            get { return _item.DepositInterestID; }
        }
    }
}